 // 关闭单项目路由tabs
export function closeSingleTabs() {
  let tabArr = JSON.parse(sessionStorage.getItem('tabArr'))
  let newTabArr = tabArr.filter(iv => !iv.path.includes('single'))
  window.vueInstance.$store.commit("SET_TABS", newTabArr); // 赋值
}
export function setNumber(num) {
  num = num - 0
  return isNaN(num) ? 0 : num
}